#ifndef LOGFILEPARSER_H
#define LOGFILEPARSER_H

#include <QFile>
#include <QTextStream>
#include <QStringList>
#include "request.h"
#include <QList>


#include <QDebug>

class LogFileParser
{
public:
    LogFileParser();
    ~LogFileParser();
    void setFilename(QString filename);
    void removeJunks();
    void findAllExtensions();
    void openStream();

    QList<Request*> *getRequests();

    void debug();

private:
    QString filename;
    QTextStream *stream;
    QFile *file;
    QList<Request*> *requests;

    void reverseList(QList<Request*> *list);
};

#endif // LOGFILEPARSER_H
